package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.ActionService;
import com.it.park.dao.ActionMapper;
import com.it.park.model.Action;

@Service("actionService")
public class ActionServiceImpl extends BaseServiceImpl<Action> implements ActionService {
	
	@Autowired
	private ActionMapper controllerMapper;

	@Override
	public boolean insert(Action action) {
		return controllerMapper.insert(action)==1 ;
	}
	@Override
	public Action selectByUrl(String actionUrl) {
		return controllerMapper.selectByUrl(actionUrl);
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return controllerMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(Action record) {
		return controllerMapper.insertSelective(record)==1;
	}
	@Override
	public Action selectByPrimaryKey(Integer id) {
		return controllerMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(Action record) {
		return controllerMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(Action record) {
		return controllerMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<Action> selectAll() {
		return controllerMapper.selectAll();
	}
	@Override
	public List<Action> selectPagination(Map<String, Object> map) {
		return controllerMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return controllerMapper.selectTotal(map);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(Action record) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public List<Action> selectPagination(Action t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(Action t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
